package com.mh.study.springcloud.controller;

import com.mh.study.springcloud.service.ResumeFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author MH
 * @since 2022-03-17
 */
@Slf4j
@RestController
@RequestMapping("auto-delivery-using-feign")
public class AutoDeliveryUsingFeignController {

    @Autowired
    private ResumeFeignClient resumeFeignClient;

    @GetMapping("/get-resume-port")
    public Integer getResumePortUsingFeign(){
        log.info("这里测试sleuth+zipkin");
        return resumeFeignClient.getPort2();
    }

}
